/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.myapp.struts.model;

import com.myapp.struts.DAO.DiscosDAO;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author CarmaZone
 */
public class DiscosSvc {

    DiscosDAO diskDao = new DiscosDAO();

    public List selectAllDisks() {
        List allDisks = new ArrayList();
        allDisks = diskDao.selectAllDisks();

        return allDisks;
    }

    public DiscosBean select1DiskUsers(int id) {
        DiscosBean disk = diskDao.select1Disc(id);

        return disk;
    }

    public void insertDisk(DiscosBean disk) {
        diskDao.insertDisk(disk);
    }

    public void deleteDisk(int iddisco) {
        diskDao.deleteDisk(iddisco);
    }

    public void updateDisk(DiscosBean disk) {
        diskDao.updateDisk(disk);
    }
}
